<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="${pageContext.request.contextPath}/login" method="post">
        用户名：<input type="text" name="username"/>
		<span>${username}</span><br/>
		密码：<input type="text" name="password"/>
		<span>${password}</span><br/>
		<input type="submit" value="登录"/>
		<a href="${pageContext.request.contextPath}/toregister"><input type="button" value="注册"/></a>
	</form>
</body>
</html>